package com.xianyun.book.dto;

import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ytt
 */
@Data
public class BookAddCmd extends CommonCommand {
    /**书籍名称*/
    @NotEmpty
    private String bookName;
    /**图标URL*/
    @NotEmpty(message = "书籍图像不能为空!")
    private String imgUrl;
    /**原始价格*/
    @NotNull
    private Double originalPrice;
    /**出版社*/
    @NotEmpty
    private String press;
    /**出版人*/
    @NotEmpty
    private String author;
    /**出版日期*/
    @NotNull
    private String publishDate;
    /**书籍对应的ISBN码*/
    @NotEmpty
    private String isbn;
    /**书籍介绍*/
    @NotEmpty
    private String bookDesc;
    /**书籍类型列表*/
    @NotEmpty
    private List<String> bookTypes;
    /**标签集合*/
    private List<String> bookLabs;
}
